﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Hero
    {
        private string heroName;
        private string heroInfo;
        private string nickName;
        private int attack;
        private int defense;

        protected int speed;

        public Hero()
        {

        }
        public Hero(string nickName, string heroName, string heroInfo, int attack, int defense, int speed)
        {
            this.nickName = nickName;
            this.heroName = heroName;
            this.heroInfo = heroInfo;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
        }
        public string HeroName
        {
            get { return this.heroName; }
            set { this.heroName = value; }
        }

        public string HeroInfo
        {
            get { return this.heroInfo; }
            set { this.heroInfo = value; }
        }

        public string NickName
        {
            get { return this.nickName; }
            set { this.nickName = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
    }
}
